package com.topway.dsmflex.model.synchro;

import com.topway.dsmflex.services.synchro.SqlServices;



/**
 * 
 * @author liusy 2013-05-08
 *
 */
public class DataSqlBean extends DataTableBean {

	public DataSqlBean(String selectSourceSql) {
		super("sql");
		this.setOperatorSource("UPDATE");
		this.selectSourceSql = selectSourceSql;
	}
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	@Override
	public void Run() {
		if(null==dataColumnBean || dataColumnBean.size()==0)
		{
			this.setDataColumnBean(SqlServices.getSqlServices().getColumnInfo(this));
		}
		this.setTableNameSource(this.selectSourceSql);
		super.Run();
	}
}
